import { createBehavior, createResource } from '@inbiz/core';
import { DnFC } from '@inbiz/react';
import { InbizMenu as PreviewMenu } from '../../preview/wap';
import { InbizMenu as LocaleInbizMenu } from '../localeWap';
import { propsSchema, defaultResource } from '../schema';
export const InbizMenu: DnFC = (props) => {
  return <PreviewMenu {...props}></PreviewMenu>;
};

InbizMenu.Behavior = createBehavior({
  extends: ['Field'],
  name: 'InbizMenu',
  selector: (node: any) => node?.props['x-component'] === 'InbizMenu',
  designerLocales: LocaleInbizMenu,
  designerProps: {
    propsSchema: propsSchema,
  },
});
InbizMenu.Resource = createResource(defaultResource);

export default InbizMenu;
